import request from '@/utils/request'

export function getDocAdviceByPatientId(data) {
  return request({

    url: '/doctorAdvice/selectAllByPatientId?patientId=' + data,
    method: 'get'
  })
}

export function getDocNameByDocId(data) {
  return request({

    url: '/doctorAdvice/selectDocNameByDocId?doctorId=' + data,
    method: 'get'
  })
}

export function getNurseNameByNurId(data) {
  return request({

    url: '/doctorAdvice/selectNurseNameByNurId?doctorId=' + data,
    method: 'get'
  })
}

export function updateAdvice(data) {
  return request({
    url: '/doctorAdvice/update',
    method: 'post',
    data
  })
}

export function insertAdviceAction(data) {
  return request({
    url: '/doctorAdviceAction/insertOne',
    method: 'post',
    data
  })
}

export function selectAdviceAction(data) {
  return request({
    url: '/doctorAdviceAction/selectOneByAdviceId?id=' + data,
    method: 'get'
  })
}

//查询所有的执行医嘱
export function getAllAction(data) {
  return request({
    url: '/doctorAdviceAction/getAllAction',
    method: 'post',
    data
  })
}

